a11y atspi: add null checks in table iface methods
authorDebian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>
Thu, 27 Mar 2025 11:24:29 +0000 (14:24 +0300)
committerDmitry Shachnev <mitya57@debian.org>
Thu, 27 Mar 2025 11:24:29 +0000 (14:24 +0300)
commit2819ed2317bbeb6a71e5e211ff69f29111990630
tree29a878b933da622d21bf03ba888686435583c748
parented5a969c3b3fdf1f7f78622591146026e3f175d0
a11y atspi: add null checks in table iface methods

Origin: upstream, https://invent.kde.org/qt/qt/qtbase/-/commit/076da096464a5d3f
Last-Update: 2025-03-24
Bug: https://bugs.debian.org/1081682

Add null checks to cover the cases where QAccessibleTableInterface::cellAt
returns nullptr (which happens e.g. when called with invalid indices via
AT-SPI) or where the cell object doesn't implement the
QAccessibleTableCellInterface, which would previously result in crashes.

Cherry-picked into 5.15 as it fixes a crash in popular accessibility client
software. Conflict resolution: remove C++17'isms (`if` with initializer).

Gbp-Pq: Name a11y_null_checks.diff
src/platformsupport/linuxaccessibility/atspiadaptor.cpp